package homework19;

import java.time.LocalDate;
import java.util.Date;

public class SalariedEmployee extends ColaEmployee{
    double monthMoney;
    void sendMoney(int month){
        if(  getSalary(month)==1)
            System.out.println("工资是"+monthMoney+100);
        else
            System.out.println("工资是"+monthMoney);

    }

    public SalariedEmployee(String name, LocalDate birthday, double monthMoney) {
        super(name, birthday);
        this.monthMoney = monthMoney;
    }


}
